package com.example.enums;

import com.baomidou.mybatisplus.core.enums.IEnum;

public enum Gender implements IEnum<Integer> {
    M(1, "男"),
    F(2, "女");
    
    private Integer value;
    private String desc;

    Gender(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public Integer getValue() {
        return this.value;
    }


    @Override
    public String toString() {
        return this.desc;
    }
}
